/**
 * Copyright (C) 2013 SHANGHAI VOLKSWAGEN, All rights reserved.
 * License version 1.0, a copy of which has been included with this.
 *
 * @File name：com.bwie.community.singleton.SingletonLazy
 * @Create on：2024/4/7
 * @Author：liuchang
 */
package com.bwie.community.singleton;

/**
 * <p>ClassName：SingletonLazy</p >
 * <p>Description：</p >
 * <p>Author：liuchang</p >
 * <p>Date：2024/4/7</p >
 */
public class SingletonLazy {

    private SingletonLazy(){

    }

    private static volatile SingletonLazy instance;


    public static SingletonLazy getInstance(){
        if (null==instance){
              synchronized (SingletonLazy.class){
                  if (null==instance){
                      instance=new SingletonLazy();
                  }
              }
        }
        return instance;
    }
}
